import http from "@/utils/http";

export async function robotCategoryList(body) {
	return http.get("/rootCategory/list", body);
}

export async function robotCategoryAdd(body) {
	return http.post("/rootCategory/add", body);
}

export async function robotCategoryDelete(body) {
	return http.get("/rootCategory/delete", body);
}

export async function robotCategoryDisabled(body) {
	return http.get("/rootCategory/disabled", body);
}

// 上传更新
export async function systemTemplatePublish(body) {
	return http.get("/knowledge/systemTemplate/publish", body);
}

export async function robotCategoryPublish(body) {
	return http.get("/rootCategory/publish", body);
}

export async function robotCategoryEdit(body) {
	return http.postFormData("/rootCategory/editName", body);
}

//获取知识库排序
export async function getRootCategoryOrder(body) {
	return http.get("/sys/tenant/getRootCategoryOrder", body);
}

//修改知识库排序
export async function editRootCategoryOrder(body) {
	return http.post("/sys/tenant/editRootCategoryOrder", body);
}
